package com.zjy.dao;

import com.zjy.bean.UserCollection;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface UserCollectionMapper extends Mapper<UserCollection> {
   int deleteByGoodsId(String goodsId);

   int deleteByTwoId(@Param("userId") String userId, @Param("targetId") String targetId);

   int deleteGoodsCollection(@Param("userId") String userId,@Param("targetIdList") List<String> targetIdList);

   UserCollection selectByTwoId(@Param("userId") String userId, @Param("targetId") String targetId);


}